package cn.piggy.gateway.core.http;


public class HttpStatement {

    private String methodType;
    private String parameterType;
    private String parameterName;
    /** 应用名称； */
    private String application;
    /** 服务接口；RPC、其他 */
    private String interfaceName;
    /** 服务方法；RPC#method */
    private String methodName;
    /** 网关接口 */
    private String uri;
    /** 接口类型；GET、POST、PUT、DELETE */
    private HttpCommandType httpCommandType;
    /** 是否鉴权；true = 是、false = 否 */
    private boolean auth;

    private String role = "user";

    public HttpStatement(String application, String interfaceName, String methodName, String parameterType,
                         String parameterName, String uri, HttpCommandType httpCommandType, boolean auth,String methodType) {
        this.application = application;
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.parameterType = parameterType;
        this.parameterName = parameterName;
        this.uri = uri;
        this.httpCommandType = httpCommandType;
        this.auth = auth;
        this.methodType = methodType;
    }

    public String getMethodType() {
        return methodType;
    }

    public void setMethodType(String methodType) {
        this.methodType = methodType;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getParameterName() {
        return parameterName;
    }

    public String getApplication() {
        return application;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public String getUri() {
        return uri;
    }

    public HttpCommandType getHttpCommandType() {
        return httpCommandType;
    }

    public String getParameterType() {
        return parameterType;
    }

    public boolean isAuth() {
        return auth;
    }

}
